<!--
 * @Author: whq
 * @Date: 2022-12-28 11:28:13
 * @LastEditTime: 2022-12-30 15:00:56
 * @LastEditors: whq
 * @Description: 
 * @FilePath: \vueTemp\src\view\home\index.vue
-->
<template>
    <div>
        首页
        <A v-model:test1="test1" @update:eventFun="eventFun"></A>
        <h1>测试:{{test1}}</h1>
    </div>
</template>
<script setup lang="ts">
import globals from '@/store/globals'
import A from '../components/A.vue'
import { ref } from 'vue'
console.log(globals().getInfo);

const test1 = ref('')

//子组件 事件
const eventFun=(info:any)=>{
    console.log(info,"=======组件 事件 数据===========");
}



</script>
<style lang="scss" scoped>
    @import "./index.scss";
</style>